package com.sia.springcloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: Sirius
 * @Date: 2022/1/2 14:36
 * @Description:
 * 设备操作控制器的接口
 * 每一种协议微服务都要实现该接口
 **/
@RestController
@RequestMapping("//deviceController")
public interface IDeviceController {

    /**
     * 添加设备
     *
     * @param request
     * @return
     */
    @RequestMapping("/insertDevice")
    String insertDevice(HttpServletRequest request);


    /**
     * 分页查询设备
     *
     * @param request
     * @return
     */
    @RequestMapping("/queryDevice")
    String queryDevice(HttpServletRequest request);

    /**
     * 删除设备
     *
     * @param request
     * @return
     */
    @RequestMapping("/deleteDevice")
    String deleteDevice(HttpServletRequest request);


    /**
     * 修改设备
     *
     * @param request
     * @return
     */
    @RequestMapping("/updateDevice")
    String updateDevice(HttpServletRequest request);

    /**
     * 获取设备表格格式
     *
     * @return
     */
    @RequestMapping("/tableStructure")
    String tableStructure();

}
